home *** CD-ROM | disk | FTP | other *** search
/ Fritz: All Fritz / All Fritz.zip / All Fritz / FILES / SPREOTUS / 123TECH.LZH / LOT105.TXT < prev    next >
Text File  |  1984-11-24  |  13KB  |  364 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.               1-2-3 Notes
  10.               All Versions
  11.               October 30, 1984
  12.  
  13.               Lotus Development Corporation
  14.  
  15.               The Autoexec Batch File
  16.  
  17.               NOTE 105
  18.  
  19.  
  20.               INTRODUCTION
  21.  
  22.               Batch files are an efficient way to store frequently used
  23.               sequences of commands.  The operating system (DOS) automatically
  24.               executes the sequence of commands whenever you execute the batch
  25.               file.  All batch files are identified by a file name followed by
  26.               the three letter extension .BAT.
  27.  
  28.               An autoexec batch file is a special type of batch file.  Whenever you
  29.           start or restart the computer and load the operating system, DOS checks the
  30.           disk for a file named AUTOEXEC.BAT.  When there is an AUTOEXEC.BAT file, DOS
  31.           reads it first and follows its commands.
  32.  
  33.               The 1-2-3 System Disk comes with an AUTOEXEC.BAT file on it.  The
  34.               file contains instructions to prompt for the date and time and to
  35.               load the 1-2-3 program into the computer's memory.  You can modify
  36.               1-2-3's AUTOEXEC.BAT file to do other chores, such as
  37.               automatically change subdirectories on the hard disk or display a
  38.               message to the user.  If there is a series of commands you use
  39.               every time you start the computer, putting them into the
  40.               AUTOEXEC.BAT file will save you time and keystrokes.
  41.  
  42.               This note explains how to change the AUTOEXEC.BAT file so that you
  43.               enter the 1-2-3 worksheet without going through the Access System
  44.               menu.
  45.  
  46.  
  47.               LOOKING AT THE AUTOEXEC.BAT FILE
  48.  
  49.               You can examine the contents of the AUTOEXEC.BAT file by using
  50.               DOS.  If you are using 1-2-3, exit from the 1-2-3 program by
  51.               selecting Quit and Yes from the 1-2-3 Program menu.  When the
  52.               Access System menu appears, select Exit and Yes to get into DOS.
  53.  
  54.               The DOS prompt should appear.  If you have a two-diskette system,
  55.               the prompt should be A>, which represents the disk drive on the
  56.               left, drive A.  If you have a hard disk system, the prompt may be
  57.               another letter, such as C>, which represents the hard disk drive.
  58.               For either system, if you do not have an A> prompt, type a: and
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.               press the Return key.  You must have the A> prompt so DOS can read
  76.               the AUTOEXEC.BAT file from the System Disk you will put in drive A.
  77.  
  78.               Note:  This note uses A> to represent the floppy disk drive and C>
  79.                      to represent the hard disk drive.  Some computer systems
  80.                      use different letters.  Check your system to determine how
  81.                      the disk drives are defined, and substitute appropriate
  82.                      letters for your system in the following exercises.
  83.  
  84.               Once you have the A> prompt, put the 1-2-3 System Disk in drive A.
  85.               Use DOS's Type command followed by the file name to display the
  86.               contents of the AUTOEXEC.BAT file:
  87.  
  88.                      Type:  type autoexec.bat [RETURN]
  89.  
  90.               The screen will look like this:
  91.  
  92.                      date
  93.                      time
  94.                      lotus
  95.  
  96.               The AUTOEXEC.BAT file supplied with 1-2-3 contains only three
  97.               commands.  The Date and Time commands are the DOS commands that
  98.               tell the computer to prompt for the date and time.  The Lotus
  99.               command tells the computer to load the 1-2-3 files and display the
  100.               1-2-3 Access System menu.
  101.  
  102.               Note:  To execute the AUTOEXEC.BAT file, the computer must be able
  103.                      to find all the files listed in it.  If you have a two-
  104.                      diskette system, all the files listed in the AUTOEXEC.BAT
  105.                      file must be on the same disk as the AUTOEXEC.BAT file.  If
  106.                      you have a hard disk system, the AUTOEXEC.BAT file and all
  107.                      of the 1-2-3 files can be located in the root directory, or
  108.                      the AUTOEXEC.BAT file can be in the root directory and the
  109.                      1-2-3 files can be in a subdirectory.  If your 1-2-3 files
  110.                      are in a subdirectory, there must be instructions in the
  111.                      AUTOEXEC.BAT file that tell the computer where to locate
  112.                      the 1-2-3 files.
  113.  
  114.  
  115.               CHANGING THE AUTOEXEC.BAT FILE
  116.  
  117.               The following example changes the AUTOEXEC.BAT file so that
  118.               you enter the 1-2-3 worksheet without going through the Access
  119.               System menu.  This brings a worksheet to the screen quickly when
  120.               you start 1-2-3.  Follow the directions appropriate to your
  121.               system.
  122.  
  123.  
  124.               Two-Diskette System
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.               1.  Put the 1-2-3 System Disk in drive A.  Begin in DOS with the
  143.                   A> prompt on the screen.  If you have another prompt, change
  144.                   to the A> prompt:
  145.  
  146.                      Type:  a:[RETURN]
  147.  
  148.               2.  Using DOS's Copy command, tell the system to copy a new
  149.                   AUTOEXEC.BAT file from the console (monitor):
  150.  
  151.                      Type:  copy con: autoexec.bat [RETURN]
  152.  
  153.               3.  The new AUTOEXEC.BAT file will still prompt you to enter the
  154.                   date and time but it will bypass the Access System menu and go
  155.                   directly to a worksheet:
  156.  
  157.                      Type:  date [RETURN]
  158.                             time [RETURN
  159.                             123 [RETURN]
  160.  
  161.               4.  Mark the end of the file with Control Z, the ASCII end-of-file
  162.                   character.  Hold down the Ctrl key and press the Z key.  The
  163.                   following appears on the screen:
  164.  
  165.                      ^Z
  166.  
  167.               5.  Press the Return key.  The drive A light will come on, and in
  168.                   a few seconds, the following message will appear:
  169.  
  170.                      1 File(s) copied
  171.  
  172.                   You have created a new AUTOEXEC.BAT file and copied it over
  173.                   the old one on the 1-2-3 System Disk.
  174.  
  175.               6.  To make sure you entered the commands correctly, use DOS's
  176.                   Type command to see the contents of the new file:
  177.  
  178.                      Type:  type autoexec.bat [RETURN]
  179.  
  180.                   The file should look like this:
  181.  
  182.                      date
  183.                      time
  184.                      123
  185.  
  186.                   You will not see the ^Z because it is a hidden character.
  187.  
  188.               7.  Now warm boot (restart) the computer by pressing the
  189.                   appropriate keys.  The drive A light will go on and the date
  190.                   and time prompts will appear.  After you enter the date and
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.                   time, the AUTOEXEC.BAT file will tell the computer to load the
  208.                   1-2-3 program.  Soon, the 1-2-3 copyright screen will appear.
  209.                   Press any key to get to a worksheet.
  210.  
  211.               Should you need to use the Access System menu after you have
  212.               entered 1-2-3 using this new AUTOEXEC.BAT file, you must return to
  213.               DOS and the A> prompt.  Put the 1-2-3 System Disk in drive A and
  214.               type lotus.  The Access System menu will appear.
  215.  
  216.               If you want to go to the Access System menu rather than a 1-2-3
  217.               worksheet each time you boot the system, follow the above
  218.               procedure substituting the word lotus for 123 in the file.
  219.  
  220.  
  221.               Hard Disk System
  222.  
  223.               To begin each computer session with 1-2-3, the AUTOEXEC.BAT file
  224.               must be in the root directory on the hard disk, and it must
  225.               contain directions to find and load the 1-2-3 files.  Although the
  226.               1-2-3 files can be in the root directory, putting them in a
  227.               subdirectory makes more efficient use of the hard disk.
  228.  
  229.               Note:  The root directory can contain only one AUTOEXEC.BAT file.
  230.                      If there is already an AUTOEXEC.BAT file in the root
  231.                      directory and you follow the directions in this example,
  232.                      you will create a new AUTOEXEC.BAT file that will write
  233.                      over the old one.
  234.  
  235.               1.  Begin in DOS with the C> prompt on the screen.  If you have
  236.                   another prompt, change to the C> prompt (or the prompt that
  237.                   represents the hard disk):
  238.  
  239.                      Type:  c: [RETURN]
  240.  
  241.               2.  Using DOS's Change Directory command, go to the root
  242.                   directory:
  243.  
  244.                      Type:  chdir\ [RETURN]
  245.  
  246.               3.  Using DOS's Copy command, tell the system to copy a new
  247.                   AUTOEXEC.BAT file from the console (monitor):
  248.  
  249.                      Type:  copy con: autoexec.bat [RETURN]
  250.  
  251.               4.  If the 1-2-3 files are in a subdirectory, enter the commands
  252.                   that tell the system to prompt for the date and time, change
  253.                   into the subdirectory containing 1-2-3, and automatically load
  254.                   1-2-3:
  255.  
  256.                      Type:  date [RETURN]
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.                             time [RETURN]
  274.                             chdir c:\subdirectory name [RETURN]
  275.                             123 [RETURN]
  276.  
  277.                   If the 1-2-3 files are in the root directory rather than a
  278.                   subdirectory, type the following:
  279.  
  280.                      Type:  date [RETURN]
  281.                             time [RETURN]
  282.                             123 [RETURN]
  283.  
  284.               5.  Mark the end of the file with Control Z, the ASCII end-of-file
  285.                   character.  Hold down the Ctrl key and press the Z key.  The
  286.                   following appears on the screen:
  287.  
  288.                      ^Z
  289.  
  290.               6.  Press the Return key.  The hard disk drive light will come on,
  291.                   and in a few seconds, the following message will appear on the
  292.                   screen:
  293.  
  294.                      1 File(s) copied
  295.  
  296.                   You have created a new AUTOEXEC.BAT file and copied it into
  297.                   the root directory on the hard disk.
  298.  
  299.               7.  To make sure you entered the commands correctly, use DOS's
  300.                   Type command to see the contents of the new file:
  301.  
  302.                      Type:  type autoexec.bat [RETURN]
  303.  
  304.                   If the 1-2-3 files are in a subdirectory, the AUTOEXEC.BAT
  305.                   file should look like this:
  306.  
  307.                      date
  308.                      time
  309.                      chdir c:\subdirectory name
  310.                      123
  311.  
  312.                   If the 1-2-3 files are in the root directory, the AUTOEXEC.BAT
  313.                   file should look like this:
  314.  
  315.                      date
  316.                      time
  317.                      123
  318.  
  319.                   You will not see the ^Z because it is a hidden character.
  320.  
  321.               8.  Open the drive A door.  Now warm boot (restart) the computer
  322.                   by pressing the appropriate keys.  The drive A and C lights
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.                   will go on and the date prompt will appear.  Make sure the
  340.                   1-2-3 System Disk is in drive A.  Close the drive A door and
  341.                   enter the date.  At the time prompt, enter the time.  The
  342.                   AUTOEXEC.BAT file will tell the computer to load the 1-2-3
  343.                   program, and soon, the 1-2-3 copyright screen will appear.
  344.                   Press any key to get to a worksheet.
  345.  
  346.               Should you need to use the Access System menu after you have
  347.               entered 1-2-3 using this new AUTOEXEC.BAT file, you must return to
  348.               DOS and the C> prompt.  Make sure the 1-2-3 System Disk is in
  349.               drive A and then type lotus. The Access System menu will
  350.               appear.
  351.  
  352.               If you want to go to the Access System menu rather than a 1-2-3
  353.               worksheet each time you boot the system, follow the above
  354.               procedure substituting the word lotus for 123 in the file.
  355.  
  356.               DOS INFORMATION
  357.  
  358.               If you need more information about DOS, the root directory, or
  359.               subdirectories, consult the DOS manual.
  360.  
  361.               Note:  Release 1A of 1-2-3 does not support all of the DOS 2.0 and
  362.                      2.1 commands.  The Assign, Mode, and Path commands can
  363.                      produce unpredictable results when used with 1-2-3.
  364.